# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=faultstat
pkgver=0.01.04
pkgrel=0
pkgdesc="page fault monitoring tool"
url="https://github.com/ColinIanKing/faultstat"
arch="all"
license="GPL-2.0-or-later"
makedepends="ncurses-dev"
options="!check" # pkg doesn't have tests
subpackages="$pkgname-doc $pkgname-bash-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/ColinIanKing/faultstat/archive/V$pkgver.tar.gz"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dm644 bash-completion/* -t "$pkgdir"/usr/share/bash-completion/completions
}

sha512sums="e844addfbfe847094bf52f740a05ca918a5b26a7f47995cb03ba472dd8eae602790d8d8bb876bd0d645abbaae14b7dce6132836e2d90b0b71041782bc8d34128  faultstat-0.01.04.tar.gz"
